﻿Ext.define('SmartClient.model.OrderModel',
   {
      extend: 'Ext.data.Model',

      fields:
         [
            'id',
            'placingDate',
            'status',
            'customermodel_id',
            'productmodel_id'
         ],

      belongsTo: ['SmartClient.model.CustomerModel'],
      hasMany: { model: 'SmartClient.model.ProductModel', name: 'products' }
   });